<?php

namespace App\Models;

use App\Traits\UseMeter;
use App\Traits\UseOwner;
use Illuminate\Database\Eloquent\Model;

// 房间
class Room extends Model implements Estate
{
    use UseOwner, UseMeter;

    protected $fillable = [
        'name',
        "is_rent"
    ];

    protected $casts = [
        'is_rent' => 'boolean'
    ];

    public function building()
    {
        return $this->belongsTo(Building::class);
    }
}
